<!DOCTYPE html>
<html>

	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<title>后台 - 赛车飞艇配置</title>
		<meta name="keywords" content="">
		<meta name="description" content="">

		<link rel="shortcut icon" href="favicon.ico">
		<link href="__PUBLIC__/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/animate.min.css" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	</head>

	<body class="gray-bg">
		<div class="wrapper wrapper-content animated fadeInRight">
			<div class="row">
				<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>基础配置</h5>
							<div class="ibox-tools">
								<a class="collapse-link">
									<i class="fa fa-chevron-up"></i>
								</a>
							</div>
						</div>
						<div class="ibox-content">
							<form id="signform" action="{:U('Site/pk10')}" method="post" class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">客服欢迎语</label>
									<div class="col-sm-6">
										<input type="text" name="welcome" value="{:C('welcome')}" placeholder="欢迎莅临，祝您竞猜愉快！本平台重金打造！玩法多样，超高赔率，等你来战！" class="form-control">
										<span>（修改后需要重启服务生效）</span>
									</div>

								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">吃码量</label>
									<div class="col-sm-6">
										<input type="text" name="chima" value="{:C('chima')}" placeholder="吃码量" class="form-control">

									</div>

								</div>


								<div class="hr-line-dashed"></div>
								<div class="form-group">
									<div class="col-sm-4 col-sm-offset-2">
										<button class="btn btn-primary" type="submit">保存信息</button>&nbsp;&nbsp;&nbsp;
										<a class="btn btn-danger" href="{:U('Index/index')}">取消</a>
									</div>
								</div>
								
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
		<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>
		<script src="__PUBLIC__/Admin/js/content.min.js?v=1.0.0"></script>
		<script src="__PUBLIC__/Common/js/ajaxForm.js"></script>
		<script src="__PUBLIC__/Common/layer/layer.js"></script>
		<script src="__PUBLIC__/Admin/js/plugins/iCheck/icheck.min.js"></script>
		<script>
			$('.pk10_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.pk10_api').show();
				}else {
					$('.pk10_api').hide();
				}
			})

			$('.xyft_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.xyft_api').show();
				}else {
					$('.xyft_api').hide();
				}
			})

			$('.ssc_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.ssc_api').show();
				}else {
					$('.ssc_api').hide();
				}
			})

			$('.bj28_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.bj28_api').show();
				}else {
					$('.bj28_api').hide();
				}
			})

			$('.jnd28_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.jnd28_api').show();
				}else {
					$('.jnd28_api').hide();
				}
			})

			$('.k3_kj_select').change(function(){
				if ($(this).val() == 2) {
					$('.k3_api').show();
				}else {
					$('.k3_api').hide();
				}
			})

			$(document).ready(function() {
				$(".i-checks").iCheck({
					checkboxClass: "icheckbox_square-green",
					radioClass: "iradio_square-green",
				})
			});
		</script>
		<script>
			$(function(){
				$('#signform').ajaxForm({
					success: complete, 
					dataType: 'json'
				});
				function complete(data){
					if(data.status==1){
						$('.btn-primary').attr('disabled','disabled');
						layer.msg(data.info, function(index){
			 				layer.close(index);
							window.location.href=data.url;
						});
					}else{
						layer.msg(data.info);
						return false;	
					}
				}
			});
		</script>
	</body>

</html>